﻿using UnityEngine;
using UnityEngine.SceneManagement;
using System.Collections;
using System.Diagnostics;

public class startScene : MonoBehaviour
{
    public float k_seconds = 1;// Time of start view

    Stopwatch intervalTime = new Stopwatch();

    // Use this for initialization
    void Start()
    {
        intervalTime.Start();
    }

    // Update is called once per frame
    void Update()
    {
        if (intervalTime.ElapsedMilliseconds >= k_seconds * 1000)// If the start view ended, go to the mapScene
        {
            intervalTime.Stop();
            intervalTime.Reset();
            SceneManager.LoadScene("mapScene");
        }
    }
}
